package com.pdh.util;

import java.util.Random;

/**
 * @Author: 彭德华
 * @Date 2021-08-29 22:19
 */
public class RandomUtil {
    private static Random random = new Random();
    //1.生成随机的取件码6位取件码code 也顺带当中用户登陆的验证码用
    public static int getCode(){
        return random.nextInt(900000)+100000;//100000-999999
    }
}
